let value = 0.685;

// 过滤数据
function filterData(_data) {
  if(_data < 1) {
    let str = (_data.toFixed(2)).toString();
    if(str.charAt(str.length-2) == 0) {
      return 0.1
    } else {
      return _data.toFixed(1)
    }
  } else {
    return _data.toFixed(1)
  }
}

// console.log(filterData(value));

// console.log(1.0 == 1);




// setTimeout(_ => console.log(4))

// new Promise(resolve => {
//   resolve()
//   console.log(1)
// }).then(_ => {
//   console.log(3)
//   Promise.resolve().then(_ => {
//     console.log('before timeout')
//   }).then(_ => {
//     Promise.resolve().then(_ => {
//       console.log('also before timeout')
//     })
//   })
// })

// console.log(2)

new Promise(resolve => {
  console.log(1);
  resolve(2)
}).then(res => {
  console.log(res);
  setTimeout(() => {
    console.log(3);
  },0)
})
new Promise(resolve => {
  console.log(4);
  resolve(5)
}).then(res => {
  console.log(res);
  setTimeout(() => {
    console.log(6);
  },0)
  return(7)
}).then(res => {
  console.log(res);
})